package com.ltmonitor.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

/**
 * 车辆信息修改记录
 * 用户对关键的车牌号、sim卡号、所属部门等关键信息修改的时候，具体修改内容需要记录到此表中
 * @author DELL
 *
 */

@Entity
@Table(name="VehicleInfoModifyRecord")
@org.hibernate.annotations.Proxy(lazy = false)
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) 
public class VehicleInfoModifyRecord extends TenantEntity  {
	/**
	 * 卡号变更
	 */
	public static String MODIFY_SIMNO = "modify_simNo";
	/**
	 * 车牌号或车牌颜色变更
	 */
	public static String MODIFY_PLATENO = "modify_plateNo";
	/**
	 * 车辆过户变更
	 */
	public static String MODIFY_DEPARTMENT = "modify_department";
	/**
	 * 终端设备变更
	 */
	public static String MODIFY_TERMINAL = "modify_terminal";
	/**
	 * 删除车辆
	 */
	public static String MODIFY_DELETE = "modify_delete";
	
	public VehicleInfoModifyRecord()
	{
		createDate = new Date();
	}
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	private long entityId;
	
	private long vehicleId;
	
	private String userName;
	/**
	 * 变更类型
	 */
	private String type;
	/**
	 * 变更内容
	 */
	private String detail;
	public long getEntityId() {
		return entityId;
	}
	public void setEntityId(long entityId) {
		this.entityId = entityId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getDetail() {
		return detail;
	}
	public void setDetail(String detail) {
		this.detail = detail;
	}
	public long getVehicleId() {
		return vehicleId;
	}
	public void setVehicleId(long vehicleId) {
		this.vehicleId = vehicleId;
	}
	

}
